package com.bj58.ecdata.calc.dbservice.dao.model;

import java.io.Serializable;

import com.bj58.ecdata.calc.dbservice.dao.annotation.DailyMultiDimensionZSet;
import com.bj58.ecdata.calc.dbservice.dao.annotation.PrimaryDimension;
import com.bj58.ecdata.calc.dbservice.dao.annotation.TableName;

/**
 * @author lichao
 *
 */
@TableName("searchword")
public class SearchWord implements Serializable {
	private static final long serialVersionUID = 1L;
	@PrimaryDimension
	private Long time;
	private Integer platform;
	private String bussline;
	@DailyMultiDimensionZSet(dimensions = { "platform", "bussline" }, cacheValue = "count")
	private String searchWord;
	private Long count;

	/**
	 * @return the time
	 */
	public Long getTime() {
		return time;
	}

	/**
	 * @param time
	 *            the time to set
	 */
	public void setTime(Long time) {
		this.time = time;
	}

	/**
	 * @return the platform
	 */
	public Integer getPlatform() {
		return platform;
	}

	/**
	 * @param platform
	 *            the platform to set
	 */
	public void setPlatform(Integer platform) {
		this.platform = platform;
	}

	/**
	 * @return the bussline
	 */
	public String getBussline() {
		return bussline;
	}

	/**
	 * @param bussline
	 *            the bussline to set
	 */
	public void setBussline(String bussline) {
		this.bussline = bussline;
	}

	/**
	 * @return the searchWord
	 */
	public String getSearchWord() {
		return searchWord;
	}

	/**
	 * @param searchWord
	 *            the searchWord to set
	 */
	public void setSearchWord(String searchWord) {
		this.searchWord = searchWord;
	}

	/**
	 * @return the count
	 */
	public Long getCount() {
		return count;
	}

	/**
	 * @param count
	 *            the count to set
	 */
	public void setCount(Long count) {
		this.count = count;
	}

	@Override
	public String toString() {
		return String.format("SearchWord [time=%s, platform=%s, bussline=%s, searchWord=%s, count=%s]", time, platform, bussline, searchWord, count);
	}

}
